package cn.edu.scau.cmi.heyaqing.singleton;

public class Chairman {

	private static Chairman instance = null;
	private String name;
	
	private Chairman(String name) {
		this.name = name;
	}
	
	public String getString() {
		return this.name;
	}
	
	public static Chairman getInstance(String name) {
		
		if(instance==null&&!name.equals(null)) {
			instance = new Chairman(name);
		}
				
		return instance;		
	}
}
